#ifndef _SEU_SIMPLECLI_H_
#define _SEU_SIMPLECLI_H_
#include "include.h"

typedef struct {
   client_t *c;
   dict_t *commands;
   int running;

   torrent_t **torrentList;
   int tListSize;

   FILE *inf;
   FILE *outf;
} cli_t;

typedef enum {
   CLI_NOERROR = 0,
   CLI_NOSUCHCOMMAND = 1,
   CLI_COMMANDERROR = 2
} clierror_type;

cli_t *cliInit(client_t *c);
clierror_type cliDoCommand(cli_t *cli, char *command, char *args[]);
void cliRun(cli_t *cli);
int cliExit(cli_t *cli, char *args[]);
int cliShutdown(cli_t *cli);
#endif
